CiscoXaaSBilling
JavaScript - Code Sample
NOTE: These are untested code samples provided for a conceptual understanding only.# Request / Response```javascript
var settings = {
"async": true,
"crossDomain": true,
"url": "https://apx.cisco.com/ccw/api/sbp/v1.0/subscription/usage",
"method": "POST",
"headers": {
"content-type": "application/json",
"authorization": "Bearer uIQxCGrC6etCBY2ufYozpVU10hwE",
"cache-control": "no-cache"
},
"processData": false,
"data": "{\n \"uuid\": \"jhfsdjkhfsdkh3489434\",\n \"createdBy\": \"user_id\",\n \"createdDateTime\": \"2017-01-24T16:00:00-08:00\",\n \"billingAddressId\": 123456789,\n \"invoiceList\": [\n {\n \"invoiceNumber\": 123\n },\n {\n \"invoiceNumber\": 456\n }\n ],\n \"beginDate\": \"2017-01-31\",\n \"endDate\": \"2017-01-31\",\n \"pageNumber\": 1\n}\n"
}
$.ajax(settings).done(function (response) {
console.log(response);
});
```